Type conversion
There is usually no trouble in assigning a
value to a variable of different type. The
value will be preserved as expected except
where;
n The variable is too small to hold the value. In
this case it will be corrupted (this is bad).
n The variable is an integer type and is being
assigned a real value. The value is rounded
down. This is often done deliberately by the
programmer.